﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DAL
{
    public class SysLog
    {
        public static void insert(SysLogEntity log)
        {
            DbHelper.ExecuteNonQuery("P_sysLog_insert", log.SlServerity, log.SlEmergency, log.SlUrl, log.SlInfor, log.Slip, log.LoginId, log.Suggest);
        }
        public static void setProcess(int slid, int adminID)
        {
            DbHelper.ExecuteNonQuery("p_sysLog_update", slid, adminID);
        }
        public static void setView(int slid)
        {
            DbHelper.ExecuteNonQuery("p_sysLog_updateView", slid);
        }
        public static DataRow selectByID(int slid)
        {
            return DbHelper.ExecuteDataRow("p_sysLog_getById", slid);
        }
    }
}
